home *** CD-ROM | disk | FTP | other *** search
Makefile | 1996-04-07 | 1.9 KB | 97 lines |
- #
- # $PROJECT: binary.datatype
- #
- # $VER: Makefile 39.1 (19.03.95)
- #
- # by
- #
- # Stefan Ruppert , Windthorststraße 5 , 65439 Flörsheim , GERMANY
- #
- # (C) Copyright 1995
- # All Rights Reserved !
- #
- # $HISTORY:
- #
- # 19.03.95 : 039.001 : initial
- #
-
- NAME = binary
- SUFFIX = .datatype
- HEADER = /include/datatypes/$(NAME)class.h
- REVFILE = $(NAME)_rev.i
-
- OBJDIR = /objs/bdt
- ADOBJDIR = $(subst /objs/,objs:,$(OBJDIR))
-
- LIBS = $(OBJDIR)/$(NAME)$(SUFFIX)
- ADLIBS = $(ADOBJDIR)/$(NAME)$(SUFFIX)
- LIBSDEST = Sys:Classes/DataTypes
-
- HEADER = classbase.h
- PROTO = protos.h
-
- CSRCS = classbase.c dispatch.c subs.c
- ASRCS = classinit.asm endcode.asm
- SRCS = $(ASRCS) $(CSRCS)
- OBJ = classinit.ao $(CSRCS:%.c=%.o) endcode.ao
-
- OBJS = $(patsubst %,$(OBJDIR)/%,$(OBJ))
- ADOBJS = $(patsubst %,$(ADOBJDIR)/%,$(OBJ))
-
- ##############################################################################
- #
- # commands
- #
-
- YACC = bison
- SED = sed
- MV = mv
- RM = rm
- CP = c:copy
-
-
- ##############################################################################
- #
- # SAS definition
- #
-
- DEBUG = DEBUG=LINE DEFINE=DEBUG
- SCOPTS = VERBOSE NOSTKCHK
- SLOPT = NOICONS VERBOSE SMALLDATA SMALLCODE
- SCOPTIMIZE = CPU=68040
- LIB = lib:amiga.lib lib:sc.lib lib:debug.lib
-
- all: $(OBJDIR) $(LIBS)
-
- $(LIBS): $(OBJS)
- slink from $(ADOBJS) to $(ADLIBS) $(SLOPT) LIB $(LIB)
- $(CP) $(ADLIBS) $(LIBSDEST)
-
- include gnu:share/gmk/sasc.mk
-
- ##############################################################################
- #
- # explicit dependencies
- #
-
- $(OBJDIR)/classinit.ao: $(REVFILE) # revision dependency
-
- $(OBJS): $(HEADER) # header dependency
-
- ##############################################################################
- #
- # make the object directory
- #
-
- $(OBJDIR):
- mkdir $(OBJDIR)
-
- ##############################################################################
- #
- # clean up
- #
-
- clean:
- $(RM) -R $(OBJDIR)/* *.tab.c
-
-